package cn.waqwb.pojo;


import java.util.ArrayList;
import java.util.List;

public class Book {
  private Integer bid;
  private String bname;

  //查询图书时，将图书所属的类型全部取出来
  private List<Category> categoryList = new ArrayList<>();

  @Override
  public String toString() {
    return "Book{" +
            "bid=" + bid +
            ", bname='" + bname + '\'' +
            ", categoryList=" + categoryList +
            '}';
  }

  public Integer getBid() {
    return bid;
  }

  public void setBid(Integer bid) {
    this.bid = bid;
  }

  public String getBname() {
    return bname;
  }

  public void setBname(String bname) {
    this.bname = bname;
  }

  public List<Category> getCategoryList() {
    return categoryList;
  }

  public void setCategoryList(List<Category> categoryList) {
    this.categoryList = categoryList;
  }

  public Book(Integer bid, String bname, List<Category> categoryList) {
    this.bid = bid;
    this.bname = bname;
    this.categoryList = categoryList;
  }

  public Book() {
  }
}
